package com.offcn.question.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.offcn.common.utils.PageUtils;
import com.offcn.question.entity.QuestionEntity;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author Since wu
 * @email 2676697841@qq.com
 * @date 2021-07-21 16:42:50
 */
public interface QuestionService extends IService<QuestionEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 题目上传导入
     * @param file
     * @return
     */
    Map importExcel(MultipartFile file);

    /**
     * 题目下载导出
     * @return
     */
    void exportExcel(HttpServletResponse response);

    /**
     * 题目类型统计
     * @return
     */
    List<Map<String, Object>> countTypeQuestion();
}

